<template>
	<div class="task-info-warp" @click="$emit('cardClick')">
		<div class="list-container bg-white">

			<div class="content">
				<slot></slot>
			</div>

			<div class="card-title">
				<div class="title-warp">

					<div class="prefix">
						<div class="icon">
							<slot name="icon"></slot>
						</div>
						<div>
							<slot name="title"></slot>
						</div>
					</div>

					<div class="suffix text-grey-300">
						<slot name="progress"></slot>
					</div>

				</div>

			</div>
		</div>
	</div>
</template>

<script setup>
import {onLoad} from '@dcloudio/uni-app'
import {reactive} from "vue";

const emits = defineEmits(['cardClick'])


</script>

<style lang="scss" scoped>
	.task-info-warp {

		.list-container {
			margin: 15rpx 25rpx;
			overflow: hidden;
			border-radius: 15rpx;
			border: 1px white solid;

			.card-title {
				border-top: 1px #e3e3e3 solid;

				.title-warp {
					display: flex;
					flex-direction: row;
					align-items: center;
					justify-content: space-between;
					padding: 12rpx 22rpx;
          font-size: 28rpx;
          color: #7f7f7f;
					.prefix {
						display: flex;
						flex-direction: row;
						align-items: center;


						.icon {
							position: relative;
							top: 3px;
							margin-right: 8rpx;
						}

					}

				}
			}

			.content {

				//padding: 18rpx 22rpx;
        font-size: 30rpx;
        color: #7f7f7f;
			}
		}

	}
</style>
